package com.android.lovely.data

import com.android.lovely.manager.KVStore
import com.android.lovely.user.UserManager
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
 *
 * @author why
 * @date 2025/3/8 02:00
 */
@JsonClass(generateAdapter = true)
data class UpdateUserLogin(
    @Json(name = "nick_name") var nickname: String = UserManager.userInfo?.name.orEmpty(),
    @Json(name = "avatar_url") var avatar: String = UserManager.userInfo?.headImg.orEmpty(),
    @Json(name = "age") var age: Int = UserManager.userInfo?.age ?: 18,
    @Json(name = "gender") var gender: Int = UserManager.userInfo?.gender ?: 0,
    @Json(name = "nsfw") var nsfw: Int = UserManager.userInfo?.nsfwStatus?:0,
    @Json(name = "fcm_token") var fcmToken: String = KVStore.firebase
)